<div class="ui-tab">
    <ul>
        <li class="tab-item <{if $action eq index and $actype eq 'ing'}>selected<{/if}>"><a href="<{u(index)}>&actype=ing" onclick="LayerShow();">进行中活动</a></li>
        <li class="tab-item last-item  <{if $action eq index and $actype eq 'wait'}>selected<{/if}>"><a href="<{u(index)}>&actype=wait" onclick="LayerShow();">待上线活动</a></li>
        <li class="tab-item <{if $action eq index and $actype eq 'end'}>selected<{/if}>"><a href="<{u(index)}>&actype=end" onclick="LayerShow();">已结束活动</a></li>
        <li class="tab-item <{if $action eq 'apply'}>selected<{/if}>"><a href="<{U('Events/applyList')}>" onclick="LayerShow();">报名列表</a></li>
        <li class="tab-item <{if $action eq edit or $action eq add}>selected<{/if}>">
            <{if $id}><a href="javascript:void(0);">修改活动</a>
            <{else}><a href="<{u(add)}>" onclick="LayerShow();">新增活动</a><{/if}>
        </li>
    </ul>
</div>